CryptoPro XMLDsig API.
Public API.

ru.CryptoPro.JCPxml.dsig.internal.dom
Class DOMKeyInfo

java.lang.Object
  extended by ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
      extended by ru.CryptoPro.JCPxml.dsig.internal.dom.DOMKeyInfo
All Implemented Interfaces:
javax.xml.crypto.dsig.keyinfo.KeyInfo, javax.xml.crypto.XMLStructure

public final class DOMKeyInfo
extends DOMStructure
implements javax.xml.crypto.dsig.keyinfo.KeyInfo

DOM-based implementation of KeyInfo.


Constructor Summary
DOMKeyInfo(org.w3c.dom.Element kiElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider)
          Creates a DOMKeyInfo from XML.
DOMKeyInfo(java.util.List<? extends javax.xml.crypto.XMLStructure> content, java.lang.String id)
          Creates a DOMKeyInfo.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List getContent()
           
 java.lang.String getId()
           
 void marshal(org.w3c.dom.Node parent, org.w3c.dom.Node nextSibling, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context)
           
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context)
           
 void marshal(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context)
           
 
Methods inherited from class ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Constructor Detail

DOMKeyInfo

public DOMKeyInfo(java.util.List<? extends javax.xml.crypto.XMLStructure> content,
                  java.lang.String id)
Creates a DOMKeyInfo.

Parameters:
content - a list of one or more XMLStructures representing key information types. The list is defensively copied to protect against subsequent modification.
id - an ID attribute
Throws:
java.lang.NullPointerException - if content is null
java.lang.IllegalArgumentException - if content is empty
java.lang.ClassCastException - if content contains any entries that are not of type XMLStructure

DOMKeyInfo

public DOMKeyInfo(org.w3c.dom.Element kiElem,
                  javax.xml.crypto.XMLCryptoContext context,
                  java.security.Provider provider)
           throws javax.xml.crypto.MarshalException
Creates a DOMKeyInfo from XML.

Parameters:
kiElem - KeyInfo element
Throws:
javax.xml.crypto.MarshalException
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface javax.xml.crypto.dsig.keyinfo.KeyInfo

getContent

public java.util.List getContent()
Specified by:
getContent in interface javax.xml.crypto.dsig.keyinfo.KeyInfo

marshal

public void marshal(javax.xml.crypto.XMLStructure parent,
                    javax.xml.crypto.XMLCryptoContext context)
             throws javax.xml.crypto.MarshalException
Specified by:
marshal in interface javax.xml.crypto.dsig.keyinfo.KeyInfo
Throws:
javax.xml.crypto.MarshalException

marshal

public void marshal(org.w3c.dom.Node parent,
                    java.lang.String dsPrefix,
                    javax.xml.crypto.dom.DOMCryptoContext context)
             throws javax.xml.crypto.MarshalException
Specified by:
marshal in class DOMStructure
Throws:
javax.xml.crypto.MarshalException

marshal

public void marshal(org.w3c.dom.Node parent,
                    org.w3c.dom.Node nextSibling,
                    java.lang.String dsPrefix,
                    javax.xml.crypto.dom.DOMCryptoContext context)
             throws javax.xml.crypto.MarshalException
Throws:
javax.xml.crypto.MarshalException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Copyright Crypto-Pro.
All rights reserved.